export const constantRoute = [
  {
    //登录成功
    path: '/login',
    component: () => import('@/views/login/index.vue'),
    name: 'login' //命名路由
  },
  {
    //登录成功的 展示数据
    path: '/',
    component: () => import('@/views/home/index.vue'),
    name: 'layout'
  },
  {
    //404
    path: '/404',
    component: () => import('@/views/404/index.vue'),
    name: '404'
  },
  {
    //任意路由
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'Any'
  }
]
